#include "queryPlayRecordHandler.h"
#include "httpJsonClient.h"
#include "appException.h"

String QueryPlayRecordHandler::operator()()
{
	HttpJsonClient client;
	client.get("operation/playRecords/playing");
	if (!client.requestSuccess()) {
		throw AppException(client.getErrorMessage().c_str());
	}
	return client.getResponse();
}
